import { configureStore } from '@reduxjs/toolkit'
import user from '@/store/user'

const store = configureStore({
  reducer: {
    // 在这存放状态
    user
  }
})

// 用于类型推断和提示


export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch

export default store;